import sentimentPackage
import runTestBase
import email

class testSentimentPackage(sentimentPackage.sentimentPackage, runTestBase.runTestBase):
    
    def __init__(self):
        sentimentPackage.sentimentPackage.__init__(self, True)

    def runTest1(self):
        fp  = open('testMessage2', 'r')
        msg = email.message_from_file(fp)
        print self.computeSentiment(msg.get_payload())
